package org.example.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.alibaba.nls.client.protocol.NlsClient;

@Configuration
public class NlsClientConfig {

    @Value("${nlk.aliyun.tts.token}")
    private String token;

    @Value("${nlk.aliyun.tts.url}")
    private String url;

    @Bean
    public NlsClient nlsClient() {
        return new NlsClient(url, token);
    }

}
